﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Products.aspx.cs" Inherits="Products" Title="Untitled Page" %>

<%@ Register Src="~/ucProduct.ascx" TagName="ucProduct" TagPrefix="uc" %>
<%@ Register Src="~/controls/ucSelection.ascx" TagName="Selection" TagPrefix="uc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script type="text/javascript">
        function ModifyImage(obj, formax) {
            var widthSize = $(obj).css("width");
            var numwidthSize = parseInt(widthSize);
            var heightSize = $(obj).css("height");
            var numheightSize = parseInt(heightSize);

            if (formax) {
                var newnumwidthSize = numwidthSize * 10;
                var newnumheightSize = numheightSize * 10;
            }
            else {
                var newnumwidthSize = numwidthSize / 10;
                var newnumheightSize = numheightSize / 10;
            }
            $(obj).css({ "width": newnumwidthSize });
            $(obj).css({ "height": newnumheightSize });

        }
    </script>

    <asp:HiddenField ID="hdnCategory" runat="server" />
    <table>
        <tr>
            <td align="left" valign="top">
                <asp:Label ID="lblselectedNode" runat="server" Text="Scaune directoriale" Font-Names="Verdana"
                    Font-Size="X-Small" ForeColor="Navy" Font-Bold="true"></asp:Label>
                <asp:GridView runat="server" ID="gridProducts" AllowPaging="true" AutoGenerateColumns="false"
                    GridLines="None" PageSize="3" PagerSettings-Mode="NextPreviousFirstLast" PagerSettings-Position="Bottom"
                    PagerStyle-Font-Size="X-Small" PagerStyle-Font-Names="Verdana" PagerStyle-ForeColor="DarkGreen" OnPageIndexChanging="gridProducts_pageIndexChanging"
                    OnRowDataBound="gridProducts_rowDataBound" Width="225px" PagerSettings-LastPageText="Ultima pagina"
                    PagerSettings-FirstPageText="Prima pagina" PagerSettings-NextPageText="Urmatoarea pagina"  PagerStyle-HorizontalAlign="Center"
                    PagerSettings-PreviousPageText="Pagina anterioara"  EnableViewState="true" PagerStyle-Font-Bold="true">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table>
                                    <tr>
                                        <td colspan="2">
                                            <uc:ucProduct runat="server" ID="ucProduct" ProductId='<%#Eval("ProductId") %>'>
                                            </uc:ucProduct>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" align="center">
                                            <asp:UpdatePanel runat="server" ID="UpdatePanel5">
                                                <ContentTemplate>
                                                    <asp:LinkButton runat="server" ID="lnkCos" Text="Adauga in cos" Font-Bold="true"
                                                        ForeColor="Black" Font-Names="Verdana" Font-Size="X-Small" ToolTip="Comanda imediata"
                                                        OnClick="lnkCos_Click"></asp:LinkButton>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
            <td align="left" valign="top">
                <%--<div style="width:120px; height:600px;">                  
                        <script type="text/javascript"><!--
                            google_ad_client = "pub-1332713381500365";
                            /* newVerticalProducts */
                            google_ad_slot = "4315376232";
                            google_ad_width = 120;
                            google_ad_height = 600;
                            //-->
                        </script>
                        <script type="text/javascript"
                            src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                        </script>
                    </div>
                    <div style="width:120px; height:600px;">
                        <script type="text/javascript"><!--
                            google_ad_client = "pub-1332713381500365";
                            /* secondVerticalProducts */
                            google_ad_slot = "2115969463";
                            google_ad_width = 120;
                            google_ad_height = 600;
                            //-->
                        </script>
                        <script type="text/javascript"
                            src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                        </script>
                    </div>
                    <div style="width:130px;">
                        <script type="text/javascript">
                            <!--
                            google_ad_client = "pub-1332713381500365";
                            /* verticalAnnounce */
                            google_ad_slot = "9360939977";
                            google_ad_width = 120;
                            google_ad_height = 600;
                            //-->
                         </script>
                         <script type="text/javascript"
                            src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                         </script>
                     </div>--%>
            </td>
        </tr>
    </table>
    <%--</div>
</div>--%>
</asp:Content>
